/*
 * @Author: your name
 * @Date: 2021-03-23 18:07:15
 * @LastEditTime: 2021-03-23 19:04:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \js_leetcode\interview-code\test.js
 */
var obj = { length: 3 }

Array.prototype.fill.call(obj, 1)

console.log(obj)

console.log(...[1, 2, 3])